package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍维修历史记录对象 tm_maintenance_record
 * 
 * @author ruoyi
 * @date 2024-12-05
 */
public class TmMaintenanceRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    private Long recordId;

    /** 宿舍编号 */
    @Excel(name = "宿舍编号")
    private Long dormId;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String issueDescription;

    /** 报修日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报修日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reportedDate;

    /** 解决日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "解决日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date resolvedDate;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    /** 负责的管理员编号 */
    @Excel(name = "负责的管理员编号")
    private Long handledBy;
    /** 维修类型 */
    @Excel(name = "维修类型")
    private String repairsType;
    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setDormId(Long dormId) 
    {
        this.dormId = dormId;
    }

    public Long getDormId() 
    {
        return dormId;
    }
    public void setIssueDescription(String issueDescription) 
    {
        this.issueDescription = issueDescription;
    }

    public String getIssueDescription() 
    {
        return issueDescription;
    }
    public void setReportedDate(Date reportedDate) 
    {
        this.reportedDate = reportedDate;
    }

    public Date getReportedDate() 
    {
        return reportedDate;
    }
    public void setResolvedDate(Date resolvedDate) 
    {
        this.resolvedDate = resolvedDate;
    }

    public Date getResolvedDate() 
    {
        return resolvedDate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setHandledBy(Long handledBy) 
    {
        this.handledBy = handledBy;
    }

    public Long getHandledBy() 
    {
        return handledBy;
    }

    public String getRepairsType() {
        return repairsType;
    }

    public void setRepairsType(String repairsType) {
        this.repairsType = repairsType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("dormId", getDormId())
            .append("issueDescription", getIssueDescription())
            .append("reportedDate", getReportedDate())
            .append("resolvedDate", getResolvedDate())
            .append("status", getStatus())
            .append("handledBy", getHandledBy())
            .toString();
    }
}
